Fix a number of errors that prevented the initialization of the add-on.
Merge pull request #26 from past/fix-errors

Fix a number of errors that prevented the initialization of the add-on.