Add support for passing a function as default
Merge pull request #51 from danielchatfield/add-default-function

Add support for passing a function as default