Added Logsupport and Namespaces

SystemExceptions will be now logged, if "DEBUG_MODE" is set to true.
Added support for namespaces.