added pthreads and parallel shell commands methods
final draft: cleaned up testing code; added comments