added jsdoc comments and dynamic aggregation. version++