Fixed bug in 'stocMC_stats', it was a flag issue, trying to work with variables that weren't allocated since I had used the wrong flag.