Added script to test threadsafety.  currently segfaults with more than one thread.
Merge pull request #13 from pbrady/scripts

Added script to test threadsafety