first working version, no lagging, still some serial buffer overflow sometimes present, LEDs not working