Adding error logging and tweaking the settings page