Fixed the config variable.  There were two levels such that you had to do config.config
Moved the bean definitions to the config file
Removed dead code that was comented out