added beforeConstruct & afterConstruct callbacks to doc