worked on reading and writing to a bianary file. Need to finish implementing the read function