Added some comments and fixed up lines over 100 columns.