Added default route to configuration
Refactoring + more logging