Fixed error in handling of each switches' channel + extra debug messages