readme updated
refactoring to clean up the document fetching