Refactored tests and reader/writer. Updated classes accordingly. (Also made formatting in line with ruby standards).
Updated README