I would contact the dealer where you purchased it from and get them to correct everything that's wrong with the car, I've had a similar experience also mate, ring them up, take it back to them, arrange etc what ever needs to be done, don't pay a penny mate, make sure everything's is fixed, and also make sure to check everything else aswel, get a second opinion if you can like someone who can inspect it for you and see if there is anything else wrong/ faults with the car because eventually more things may pop up and only make the experience worse
ive had to deal with it my self,
oh yeah get them to do diagnostics etc, , get a garage or someone experience to check the boot also where the spare tyre is, sometimes you can tell if there was any serious damage from a rear collision by looking at the boot spare tyre area where they may have repaired things. im not fully clued up on these things my self but from experience and uncles ive learnt this lol