add support for function yields
release 1.0.0
fix params on returned function
add params tests
release 1.0.1