Bug fixes

corrected typo in initplot.m
corrected unit error for saving amplitude_analysis to text file
corrected incorrect averaging