Code additions to support version 4 hardware

V4 hardware has 8 outputs instead of 4. This is now supported. Also, it is now possible to set sys_type to 4 from the console.