Add onDuplicate callback and fix form submission bug

* Adding onDuplicate as per #5. 
* Add tags in a form example

Fixes: #4
Fixes: #5