Added Tylers latest code, write of serial interface, etc.