Implemented serialization, very basic saving and loading