Make ChannelSession class nested
Fix access modifiers