adding jsdoc to resources
Adding new tests and completing debug functions