Fixes missing comment.
Fixes bugs introduced in converting the AI module format. Also implements getTriggers().