remove unused imports and code; import config parameters by name; use simplejson