Adding annotations to a document