when used as decorators, return callback
Otherwise, using them as decorators will make the callback
unusable in other contexts
Merge pull request #58 from mihneasim/master

Using decorators for setting callbacks