Updated reading and writing a little - moved some things around to make more sense?