added onsuccess + oncomplete callbacks

onsuccess and oncomplete callbacks can be passed into the settings
object