fixed "signedness" bug in sleep_ms function
fixed timing issue: added volatile + TX interrupt
cleaned up main + sleep is now up to 1sec