added spectrum averaging and std creation to jmGen.py