Code style and backward compatibility

- Reverted tabs to soft-spaces as required from [ruby style
guide](https://github.com/styleguide/ruby).
- Reverted channel default value to “”
- Removed superfluous code.