adding tests
jsdocs and documentation