switching to some simple spin locks
changed the amount of time a thread might sleep
removing unused variable
getting the master thread out of the way