Cleaned up the top of the script.  Finished coding mapping function and the foreach() parallelized loops to run the mapping for each of the 4 trait sets.