Added some of the core file IO work and some tests