Adjusted function argument value according to requirements.
Moved probe.aggregation code-lines to seperate function.
Added probe aggregation functionality to KMeans clustered Heatmap analysis.
Change WGCNA package loading to conditional position.

Note: all analysis scripts need their own probe.aggregation function, because there is currently no global R sourcing support where the probe.aggregation function could reside.
Added probe aggregation functionality to Hierarchical clustering Heatmap analysis.

Also forgot to remove WCGNA package loading in main function of HeatmapLoader.R (since it is now loaded in the probe aggegation function).
Added probe aggregation functionality to PCA analysis.