Add maxval argument when using progressbar as a function.
Merge pull request #13 from rgeoghegan/master

Add maxval argument when using progressbar as a function.