made minor modifications to the code.
Mostly spelling errors