ported to teensy3, added logging, robust comm, misc