added jsdoc files
revised examples
and stuff