externalized config and refactored config variables.  closes #10 and #12