config changes

-moved config to json
-changed config structure to group values together

this is just a suggestion, if you do not agree with this, feel free to simply close the PR :)