data capture code - config parameters, object, event and state classes added.