Add vim modelines to some files (No functional changes).
Minor stylistic fixes, no functional changes.
First pass at cleaning up the read code.
Implement the io.WriterTo interface.
First pass at cleaning up the write code.