Removing hardcoded stuff

Removing hardcoded stuff and adding an external config file. No need to
edit anything but the config.php file