Added verification to init to catch NPE issues

Updated index creation to write a document and delete to verify correct functionality