Basic implementation of prettyprinter.
Added prettyprinter.
Added nodetype information and fixed class value.