added race detection
Merge pull request #8 from dlazell/racedetect

added race detection