Added serializer, finished file I/O