refactoring and adding documentation format jsdoc