Refactored and simplified, added a few new settings, and ripped out some others that seem non super-useful.