Lots of code added for non-default misc settings
formatting
Start of refactoring for doing "misc" on a separate file