Torubleshooting and reduce added

code gets stuck when reading the file and doesn't seem to put the data into shared memory.  Only reads the first word of each line in the input file.  Reduce needs more work.