fixed whitespace errors
Threads now have thread.sleep