removed Sleep  functions from the code. it really sped things up a whole lot. Ready to merge with the main trunk.