Added some string printouts and fixed a serialisation bug