Fixed issue with duplicate documents stored to DB; improved README to incorporat the correct clearKB calls.