Moved fileio, comments

Moved the FileIO classes to their own package. Also, added comments to
most methods.