Cleared issues with indexing, can now index any number of documents without specifying a patient
added some server side code to add updates while indexing is going on