file serialization

Porting information:
Data (user data and sequencing state data) are stored in the file system by implementing the 'serialiazable' interface.