added jsdoc template
jsdocced some more
added unit tests for iddqd.type