Change name of enrol/apply:manage to enrol/apply:manageapplications to avoid confusion with reserved enrol/xxx:manage for manual enrolment status changes (see also allow_manage() method).
Remove unnecessary enrol/apply:enrol capability (plugin does not allow manual enrolment of other users)
Add description comments.
Added option to send email to managers as well as teachers.
The email message now contains a link to manage applications (the link allows teachers to manage all applications in a course, while managers see all applications in all courses).