more cleanups of the datetime code - mostly comments etc