Mode API and warning indicator

Fixes #121
Fixes #115