add jsdoc
add tests for jsdoc
get the jsdoc
avoid constructor
add a from == 0 to test for the constructor
make constant private
Write jsdoc when writing the function block
fix intellij warnings