tweaking name of test
adding Channel.compareModes function + tests
add doc
implementing MODE command handler
adding missing call to shutdown()
adding tests for new channel methods
gaurding block for memory safety