Renamed "func" argument to "fun"

since "func" is a reserved word now.
Merge pull request #12 from yglukhov/patch-1

Renamed "func" argument to "fun"