add locks and the Rotate() function.  Remove IsWriteTooLong function.  Fix a bug in the link to time constants.