Reconfigured config

Changed some existing functionality and added a Config class to the
client.
Fixed loading issues