add version
secure event emitter
fix code consistency
fix doc