added species color coding to the julian date plots, answered a few comments in the code
moved functions to teh top of the code, as following common style