Modified the average function in Average.py and plot every single spectrum to test the results.