changed readme
refactored the search
refactor search
fixed bug with context on adding and editing a document