Prepared for error handling
Added a light error handler and the settings module