check num times and to block argument types

check for a closure.
fixes issue #20