Added update function
Merge pull request #29 from KirbyAu2/master

Update Function