Finished all output formats.
Got test suite to compile.
Fixed native writer so native documents parse.