Updated copyright.
Split up the config functions like the other projects.
Fixed imports.
Fixed main config.
Refactored for common variable.