Overhaul config menu to make code easier to expand upon

This also fixes a few minor syntax errors that were the result of
duplication code across individual menu options.