Fixed up some spelling

Fixed up some spelling and removed some trailing spaces, added a couple of missing semi-colons