Got serializing functions to work, and added print functions.
Resolved merge conflicts and memory things.