first shots at HW2. clang-format'd, implemented separation into channels.

struggling with inserting printfs into the code (cuda complains about using
too many resources)