Update documentation on onsuccess and onerror handlers