Added code for settings the dutycycle per channel.
Also updated testcode to demonstrate this.