Added some unparsing code

I don't have any tests for the unparsing, but I did some basic interactive tests
and it is a reasonable start.

This closes #1.