Implemented Log4J and made DEngine run in it's own thread