reporter update

-SetEnvironment added to run functions of studies and analyses (reporter
looks for an id attribute in the environment it is using for evaluation,
if it exists, it will store all logs corresponding to the id in
reporter$studiesContent, each entry of which is written to the log file
at the end of simulation.
-Grouped log file by study and analysis