adding branch for NaN, along with tests
making NaN check more straightforward, capitalizing to be a more recognizable
Add 'error' check
Merge pull request #15 from cristiandouce/add-error

Add 'error' check
Merge pull request #14 from component/NaN

Checking for NaN, fixes #12
adding NaN to readme
Automatically rewritten for npm.