removes use of Config in favor of exporting vars
fixes syntax error
Merge pull request #9 from nifengle/refactor

Refactor