added code + documentation for chat channels