rearrange some stuff(LB)

Moved the sendMessage loop to the bottom of the program and added delay of 500ms.  This gives any other systems time to catch up and possibly generate a response which would be caught at the beginning of the next loop.  May need restructuring.