Refactor settings assignment

Settings are now set via a simple call to the function _setsettings(), falling back to the supplied default value.

Simplified and standardized the comments on the various settings, and "hid" the module-local objects with leading underscores