added comment and mods
missing method and changed the callback logic
changed to single callback
added method docs