Review: Clean up/improve class/userconfig population code
 * Split the logic into two functions
 * Made it generate blank files if the defaults don't exist or can't be read
 * Added comments, removed nesting, improved variable names, etc