Cleaned up implementation of FileIO

Utilized static FileIO calls to reduce amount of code as well as clean up resource utilization. Higher cohesion than before