added timeout and cancel doc and formatting fixes