Fixed spelling errors and look of code