subtract current epoch to get correct time since last update
add threading to "update" command
cleanup and better commenting of threaded code