diff --git a/cmake_modules/local_subs.py b/cmake_modules/local_subs.py
index 0ecd607b6ba7dbd405c19a22c2a570f5c1a0fbbe..a6e258d574ac01ef6a4e591f31032c4a6f6e49e5 100644
--- a/cmake_modules/local_subs.py
+++ b/cmake_modules/local_subs.py
@@ -1,3 +1,16 @@
+"""
+ @file local_subs.py
+
+ Python SPM specific substitution rules for the Precision Generator script.
+
+ @copyright 2017-2020 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
+                      Univ. Bordeaux. All rights reserved.
+
+ @version 1.0.0
+ @author Mathieu Faverge
+ @date 2020-07-16
+
+"""
 subs = {
     # ------------------------------------------------------------
     # replacements applied to mixed precision files.
diff --git a/include/spm/const.h b/include/spm/const.h
index 3a915e76b032719277ef9becb3b997f4ae6e098d..3c5732ff8e6464751dc54b3fe99820489790dd13 100644
--- a/include/spm/const.h
+++ b/include/spm/const.h
@@ -18,8 +18,8 @@
  * @{
  *
  **/
-#ifndef _spm_api_h_
-#define _spm_api_h_
+#ifndef _spm_const_h_
+#define _spm_const_h_
 
 #include "spm/config.h"
 
diff --git a/src/drivers/iohb.c b/src/drivers/iohb.c
index 7366c44699cc14f246384a4ee79449508ae34bac..f249cb1e4fdf6ff0f0e49edf3b899d685462603f 100644
--- a/src/drivers/iohb.c
+++ b/src/drivers/iohb.c
@@ -1,3 +1,10 @@
+/**
+ *
+ * @file iohb.c
+ *
+ * Harwell-Boeing File I/O in C
+ *
+ **/
 /*
  Fri Aug 15 16:29:47 EDT 1997
 
diff --git a/src/drivers/iohb.h b/src/drivers/iohb.h
index c067fd30c834bf6a99c19ae7b52538f8426b21f6..15f60c5024a9c14df0111b5879734955c7213c31 100644
--- a/src/drivers/iohb.h
+++ b/src/drivers/iohb.h
@@ -1,3 +1,10 @@
+/**
+ *
+ * @file iohb.h
+ *
+ * Harwell-Boeing File I/O in C
+ *
+ **/
 #ifndef _iohb_h_
 #define _iohb_h_
 
diff --git a/src/drivers/mmio.c b/src/drivers/mmio.c
index a9257e69a2090f692bdb084dfc180b3de5c415c3..5386cb37806db9e572592d5734b0ac1330f8d71b 100644
--- a/src/drivers/mmio.c
+++ b/src/drivers/mmio.c
@@ -1,10 +1,11 @@
-/*
-*   Matrix Market I/O library for ANSI C
-*
-*   See http://math.nist.gov/MatrixMarket for details.
-*
-*
-*/
+/**
+ *
+ * @file mmio.c
+ *
+ * Matrix Market I/O library for ANSI C
+ * See http://math.nist.gov/MatrixMarket for details.
+ *
+ **/
 #include "common.h"
 #include "spm_drivers.h"
 #include "drivers/mmio.h"
diff --git a/src/drivers/mmio.h b/src/drivers/mmio.h
index ad586f50334dadb2a4912abaf8fca7b922bcf7e6..eda8c45b62271b686a83e7568de2df4edae06c73 100644
--- a/src/drivers/mmio.h
+++ b/src/drivers/mmio.h
@@ -1,11 +1,11 @@
-/*
-*   Matrix Market I/O library for ANSI C
-*
-*   See http://math.nist.gov/MatrixMarket for details.
-*
-*
-*/
-
+/**
+ *
+ * @file mmio.h
+ *
+ * Matrix Market I/O library for ANSI C
+ * See http://math.nist.gov/MatrixMarket for details.
+ *
+ **/
 #ifndef _mmio_h_
 #define _mmio_h_
 
diff --git a/tests/spm_dist_genrhs_tests.c b/tests/spm_dist_genrhs_tests.c
index 27872e2c84e2fc9b6521d54650a5df21bad507b9..0bd20678be097ba3c1b503a39ade281cfd523e2e 100644
--- a/tests/spm_dist_genrhs_tests.c
+++ b/tests/spm_dist_genrhs_tests.c
@@ -1,8 +1,9 @@
 /**
  *
- * @file spm_dist_norm_tests.c
+ * @file spm_dist_genrhs_tests.c
  *
- * Tests and validate the spm_genrhs routines in the case of random distributed vectors.
+ * Tests and validate the spm_genrhs routines in the case of random distributed
+ * vectors.
  *
  * @copyright 2015-2020 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
  *                      Univ. Bordeaux. All rights reserved.
diff --git a/tests/spm_scatter_gather_tests.c b/tests/spm_scatter_gather_tests.c
index 3e2bcbb7b4b620e5766c61be9027c917303e0374..465caf2a4ea4587c09e29a6e24b1b45df4a03792 100644
--- a/tests/spm_scatter_gather_tests.c
+++ b/tests/spm_scatter_gather_tests.c
@@ -8,8 +8,8 @@
  * Test and validate the spmConvert routine.
  *
  * @version 1.0.0
- * @author  Tony Delarue
- * @date    2020-02-20
+ * @author Tony Delarue
+ * @date 2020-02-20
  *
  **/
 #include <stdint.h>
diff --git a/wrappers/fortran90/examples/spm_driver.F90 b/wrappers/fortran90/examples/spm_driver.F90
index fba2a146826d8887deb5d1b00a42ff88d22d3782..e2f036c2ae121ed39ffc0b58a53bae5088e766d5 100644
--- a/wrappers/fortran90/examples/spm_driver.F90
+++ b/wrappers/fortran90/examples/spm_driver.F90
@@ -1,5 +1,5 @@
 !
-! @file spm_driver.f90
+! @file spm_driver.F90
 !
 ! Fortran 90 example using a matrix read with the spm driver.
 !
diff --git a/wrappers/fortran90/examples/spm_user.F90 b/wrappers/fortran90/examples/spm_user.F90
index da9059c826cd2e2769a132e31f4723e86f2bdd1a..b88292dae83ddbccc60c8c18868c307578572afe 100644
--- a/wrappers/fortran90/examples/spm_user.F90
+++ b/wrappers/fortran90/examples/spm_user.F90
@@ -1,5 +1,5 @@
 !
-! @file spm_user.f90
+! @file spm_user.F90
 !
 ! Fortran 90 example using a laplacian matrix.
 !