added IO class with file input read and write functions