Updated analyzepiv to work with the latest data. Added a smoothing option