Add trigger functionality.

- Trigger list() method.
- Programatic access.
- Take print method out of the function.
Merge pull request #11 from orviz/add_triggers

Add trigger functionality.