Stacktrace added

Also i make some improves with namespaces