Refactored code to use dictionary from the settings file, not from the python. Also, almost no constants now. Fixes #201 (would close it after merge in dev)