Added ability to pass a function as a default value

This is a fix I created for address the ticket I opened (#18).  Let me know if there is anything that needs fixing.