Minor bug fixes and enhancements
Changed REFRESHTIME and DEMO_DELAY to float
REFRESHTIME updated from database table `flags` if exists