more idiomatic code and a logical fix

When using both sending and receiving channels as function parameters, it's idiomatic to have the destination channels first, followed by the source channels. Mentioned by Mark Summerfield in his Programming in Go book plus explained in golang-nuts (https://groups.google.com/forum/#!topic/golang-nuts/oNVBxO3xnkI).