code style + external flags module

code style fixes
flag definitions moved from config to separate watchflags module