Added code for cleaning R environment first thing before running the rest of the module's code (session).