Merge pull request #2 from chester1000/restruct

Structural change + API change
fix(export): unnecessary export removed
style(test): indentation adjusted
fix(config): config now doesn't leak