Add tutorial on online/offline event detection