Fix line lengths in code.
Fix printed sizes so that tabs always align.
Added some comments and removed some blank lines.