Add some tests for flagged queries
Start Doxygen documentation.