Added API documentation.
Fixed use_max_warning_level() and treat_warnings_as_errors() to work when no CMAKE_BUILD_TYPE is specified.