defaulting to no-op life cycle event handler
removed old comments
fixed export directly with MetricRegistry
added validation of arguments in constructors
using fluent style in example