Added kick and leave functionality

Added kick functionality
Added leave functionality
Added some new PEXHelper methods
Cleaned up some code