Move FlagMap to Util
Improve parser setup as a library (documentation and privacy)