added matlabpool open command, but parfor loop now gives segmentation violation. commented out progress points/time estimates because they no longer make sense in a parfor loop