Adding reader
added tests
Merge pull request #1 from helmedeiros/writer

Added writer code