Fixed a few bugs. Added support for a few new node types. Created toNode methods for every type of instruction.