Added settings page. Fixed some other things.