cleanup
create write_tail()
change write_tail() to take a char string of TMS bits to be shifted out