Modified IO class/test to use Reader and Writer instead of files.