Updated
Settings and functions

Integrated settings page and rebuilt the main function