Cleaned up flag.h and flag.c
Cleaned up @set.
Added nameformatter and targetmatcher factoires. Nameformatter now takes a DB as a constructor arg and can show flags. Added flags to examine. Fixed a flag setting bug. Added create() and set() function.