Added more documentation

Initial Sphinx documentation setup added.
lib.{config,flags} got a few documentation statements added.