added some new functions in client.erl and added the config files