initial checkin.
add segnum remapping support to help with ExpressLoad conversion.
moved io stuff to new subpackage; added support for DataInput/DataOutput