fix dispatchAsync of Event mechanism
add npm build directive
add docs for Event mechanism