Updated documentation and added a new action.

All the code is now documented.
I've also added a simple permission system, see line L#50.
Added a new action: getAlerts
Issue #3 should also be fixed.