Tested and finalized the IO methods