added states to the read() function
Merge pull request #19 from circuitFlower/patch-1

added states to the read() function