updated to version 1.0.1 adding options object to complete method.

(cherry picked from commit 329043f46390bb2c249c396fdce314d820f1d676)