Bug Fixes and Unit Tests

- Fixed parsing error in package.json
- Added unit tests through mocha+chai
- Fixed bug with selecting single number, string, boolean, or null.
- Added exit status of 1 when there are errors
- Output real version number