Added all the functions needed for analysis into one file "resouceCompetitionFunctions.R" The analysis script now doesn't have any functions defined in it.  The resourceCompetitionFunctions are sourced at the beginning of the analysis script and then the individual functions are called throughout.  Shortens and streamlines analysis script.