update bamStatPlots.r to latest version