added unit tests for io to ensure files are read and written with integrity (unit tests passed on compile)