Added settings page

Added the settings page as well as fixed other little errors