added initial doxygen support
cleaned up HasLoop