Added config file and a leave command plus other small changes