added multiprocessing in a couple of other steps to speed things up.  wrote in shapefile outputting.
cleaning up a bit more...