Testing/general code

Went through generally fixing things where I could,
There is still a problem where cars aren't assigned the parked state
after they are meant to be parked. Also another error somewhere I
commented but can't remember