Core API jsdoc review. docs and downloads rebuilt.
Bug in debug message. Updated some docs