Add --nthreads; update thread spawning code; include Makefile