onsuccess and onerror callbacks added for more user functionality
Modify handlers to only be called when the form is submitted
Update docs with information on new features