Fixed some spelling errors and variable problems