Updated --update function.
Merge pull request #13 from crowster/master

QR