generating plot functions

adjusted distance measure by scaling to real world.
Fixed bug in CalcLagsAtMaxCorr

created new plot functions including heatmaps. And commented out some
like in CalcPhaseStability for testing. Changed to peaks instead peak
starts in astro triggers.
fixed mistake in CalcCosineSimilarity

incomplete work on parse corr vs. lag