Issue #156 - Fixed channels API hooks and added unit tests
Issue #156 - added some logging