Add parsing of channels from config file.

Add slightly better error handling for incorrect config file.