Spelling and code reformatting