Refactor to not use constants anymore

and delete the obsolete config file.
Closes issue #2.