add pthread.h to graingrowth_MC.cpp and add nthreads argv to update(); several other small changes.