Continued work on I/O.
Prepared for versioning.
Does not compile!