adding tests for the order of life cycle events fired
README update
jsdoc update