Fixed 404 Page Sending
Some refactoring, optimizations, logging etc