Fixed a few bugs with config file and URI functionality.