Adding documentation for writing, and fixing some documentation for parsing.
Adding tests for file I/O and writing.
Version bump to 1.2.