Added 404 page
Improved errorlogging