added error estimation for spectral width, velocity, and amplitude. fixed bugs in spectral width calculation