added reflection and some more events and moved the Config class