Various small fixes to uploader, io interface, make pwm command slightly more flexible.