updating rd, adding plotTimeSeries and fixing fitTimeSeries abs