Bug fix getAmplitudeAndWavelength.m - amplitude calculated wrong previously