iks: remove terminating NaNs from history message

+ remove NaN from begin and end of history data
+ adjust times to match data
+ fix end time -- now its half open interval