Added value check for channel functions!

Added an if-statement checking if the specified channel is valid.
Updated documentation correspondigly.