refactor and rename

removed indirection for reading and writing were possible
Merge pull request #30 from Garonenur/dw

refactor and rename