finishes initial version of read, changes deserialize int to take in a char array