Changed readFile() to return number of read in bytes.
Implemented read functionality.