updating some comments and renaming the addCallback function