adding documentation
add more inline jsdoc documentation