Added ability to pass functions directly
Added docs
Added tests
changed name of the tests
Merge pull request #17 from Subash/master

Added ability to pass functions directly