modified time vector from days since start of record to actual date.  General tidy up of script