Typo and bug fix for reading

The previous pull request #12 has introduced a small bug and here is the fix.

A typo fix is also included.