allow setting initial value via function arg
Merge pull request #1 from dominicbarnes/master

Allow setting initial value via function arg