Added threading to the main file to spawn per script.

Run the same way: ./main ./sampleFiles/* > output.txt. This will fork
to a text file to print the info. Check out output.txt. It is running
interlevedly as espected. To assure that teh files wold be printed
correctly, i put a mutex around the output!