wrote test script to catch errors quiclly
renamed serialize/deserialize methods
Implemented graph serialized format to replace array serialized format since it should be more compact on big arrays