extended jsdoc commenting and docs

Mode defined documentation over kb functionalities and jsdoc generated
from it