warning message if no gap data
small time problem, template form
Merge branch 'master' into dev
template functions for time formatting, logical db queries and template interaction