add optional iterations param to update
Merge pull request #4 from eeeeeric/master

add optional iterations param to update