implemented serial receive and transmit
loader input loop: now polls both serial interface and keyboard