corrected makefile to use pthreads lib and setup things for parallelizing (+ minor config changes)