vwait, extra states, serial io pins
Add serial port code