Added the 404 not found header to the notFound method. Added a few exit functions to the routing system