changed implem. of deserialization

also added some files required for compilation that was missed.