Update addon.lua

Update to the new functions.
Merge pull request #59 from WibbenZ/patch-14

Update addon.lua