Removed old code from a depreciated callback, fixed some typos.