start document analysis