added callback parameter to Class based interface and updated docs