tidying comment and spelling errors