Minor revision

+ Revised docs
+ Added constants for event handler
+ Inlined performance critical code