diff --git a/Tests/GTestWrapper/TestAll.cpp b/Tests/GTestWrapper/TestAll.cpp
index 2c7d770903ae664bd4653c05ce0f6722f816bf46..46fcee240357d58f9cb5289fd3cae7b4ec1a7f98 100644
--- a/Tests/GTestWrapper/TestAll.cpp
+++ b/Tests/GTestWrapper/TestAll.cpp
@@ -1,5 +1,30 @@
+//  ************************************************************************************************
+//
+//  BornAgain: simulate and fit scattering at grazing incidence
+//
+//! @file      Tests/GTestWrapper/TestAll.cpp
+//! @brief     Implements main, for use in various test directories.
+//!
+//! @homepage  http://www.bornagainproject.org
+//! @license   GNU General Public License v3 or higher (see COPYING)
+//! @copyright Forschungszentrum Jülich GmbH 2018
+//! @authors   Scientific Computing Group at MLZ (see CITATION, AUTHORS)
+//
+//  ************************************************************************************************
+
 #include "Tests/GTestWrapper/google_test.h"
 
+//! Main program for use in various test directories.
+//!
+//! We need this function instead of gtest_main [1] because we want to use our
+//! wrapper google_test.h instead of gtest.h.
+//!
+//! We compile this function separately in each test directory, and link it with
+//! source files that contain TEST_F macros.
+//!
+//! [1] https://github.com/google/googletest/blob/master/googletest/docs/primer.md
+//!     #writing-the-main-function
+
 int main(int argc, char** argv) {
     ::testing::InitGoogleTest(&argc, argv);
 
diff --git a/Tests/GTestWrapper/google_test.h b/Tests/GTestWrapper/google_test.h
index f48bbe25568f9d16c797e02881ff78b65957d5a5..1cdb8e03690b95278d089ec39b7213edee426a82 100644
--- a/Tests/GTestWrapper/google_test.h
+++ b/Tests/GTestWrapper/google_test.h
@@ -1,3 +1,17 @@
+//  ************************************************************************************************
+//
+//  BornAgain: simulate and fit scattering at grazing incidence
+//
+//! @file      Tests/GTestWrapper/google_test.h
+//! @brief     Wraps gtest.h, and provides tests for complex number.
+//!
+//! @homepage  http://www.bornagainproject.org
+//! @license   GNU General Public License v3 or higher (see COPYING)
+//! @copyright Forschungszentrum Jülich GmbH 2018
+//! @authors   Scientific Computing Group at MLZ (see CITATION, AUTHORS)
+//
+//  ************************************************************************************************
+
 #ifndef BORNAGAIN_TESTS_GTESTWRAPPER_GOOGLE_TEST_H
 #define BORNAGAIN_TESTS_GTESTWRAPPER_GOOGLE_TEST_H