Fixed typos and formatting

Updated comment header, auto-formatted document, organized using
statements and fixed a few spelling errors.