Using multithreading for running the machine on the corpus. Added a lock for WordNet.