add function to calculate average of a 1D signal
add description in README file
conversion form int to double could cause int overflow for large value
added rms verification and intermediate window to increase the number of averages