FileIO implemented

Not as need as could be
Cleaned up FileIO code a little