Added callbacks example and fixes