Writing out parsed files to disk; cleaned up grammar, added support for additional constructs.