Add averages for x,y,z axes
Add working RMS functions