Updating documentation
Improved jsdoc
Merge pull request #24 from oncletom/fix-24

isValid() does the wrong job