serialization methods moved to a superclass
Changed node indexing with __getitem__ (0 is self)
further class split
test data added