Update

update function added.
Merge pull request #1 from OlafurTorfi/master

Update