Scans document and allows user to search words in it