fixed a few spelling errors and minor syntax bugs