file reader/writers updated to fit specification