documentation fixes
added purge_existing_index
added test for purge_existing_index option