minor jsdoc changes
cleaned up generatePromise, also fixed error when no callbacks were attached