fix for issue: Code Quality #4. added comments in jsdoc style.