Merge pull request #5 from blabno/exercise6

Exercise 6 Readme and code formatting
Add tests and small fixes
npm test misconfigured #13