added partRoom(), modified joinRoom()

and updated the example code in README to demonstrate usage