add cycle and overflow events, update jsdoc
correct jsdoc