Documentation and examples

Finally wrote some documentation. Corrected typo in demo. Added a two second sleep after deleting an item for elasticsearch to update its index.