Add leave function and a bit cleanup
Merge pull request #5 from tkjaergaard/feature/add_leave_command

Add leave function and a bit cleanup