Corrected typos, comments and indents.