diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp
index 1460ca4434dda0ebfb3197709a7110ec852371ae..602f9ea238418b540593b9281f529a3a4d76dc71 100644
--- a/src/cluster/cluster.cpp
+++ b/src/cluster/cluster.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file cluster.cp
  *
diff --git a/src/cluster/np_cluster.cpp b/src/cluster/np_cluster.cpp
index de9c30fea71cf4a06a5e53e5b6989f1a4f2303c9..175af11f9644e6e5ad4a4f73432d132c831f495b 100644
--- a/src/cluster/np_cluster.cpp
+++ b/src/cluster/np_cluster.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file np_cluster.cpp
  *
diff --git a/src/libnptm/Commons.cpp b/src/libnptm/Commons.cpp
index cff015719fd91bdb76e8072da99a0fce058fce17..edf339501617b2576e66b34fbc75fdf15a3a0536 100644
--- a/src/libnptm/Commons.cpp
+++ b/src/libnptm/Commons.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file Commons.cpp
  *
diff --git a/src/libnptm/Configuration.cpp b/src/libnptm/Configuration.cpp
index 704d4eca13b96e486c332c3982bf18f861f31c2f..b07ca284e2e261e39cb36581d04fd27cad36334a 100644
--- a/src/libnptm/Configuration.cpp
+++ b/src/libnptm/Configuration.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file Configuration.cpp
  *
diff --git a/src/libnptm/TransitionMatrix.cpp b/src/libnptm/TransitionMatrix.cpp
index cb383e9f5ee58ce3d237e1f2dc869f7a3358f4f9..1c665bc21e3f64ce4c6d41aa465a517383bfc751 100644
--- a/src/libnptm/TransitionMatrix.cpp
+++ b/src/libnptm/TransitionMatrix.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file TransitionMatrix.cpp
  *
diff --git a/src/libnptm/algebraic.cpp b/src/libnptm/algebraic.cpp
index 477b3373e5ff36e4a54318f8c65bd914d161c217..b73442c3bb3031b634742ec0db2e4d4860158270 100644
--- a/src/libnptm/algebraic.cpp
+++ b/src/libnptm/algebraic.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file algebraic.cpp
  *
diff --git a/src/libnptm/clu_subs.cpp b/src/libnptm/clu_subs.cpp
index 937ac24d4c512133c1d6c224fd9f675a9698a9a0..ac6fc233d892ff393de70d47df3e3660a3dc65fa 100644
--- a/src/libnptm/clu_subs.cpp
+++ b/src/libnptm/clu_subs.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file clu_subs.cpp
  *
diff --git a/src/libnptm/lapack_calls.cpp b/src/libnptm/lapack_calls.cpp
index 1c68aa5f1b50543ebafc6d2fa10c39b0650eef4c..0e101d502c03b1fe8cfd80b8345fddb30105ec5f 100644
--- a/src/libnptm/lapack_calls.cpp
+++ b/src/libnptm/lapack_calls.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file lapack_calls.cpp
  *
diff --git a/src/libnptm/logging.cpp b/src/libnptm/logging.cpp
index 8a064001b6f7be76c08a093bd73bb8f18c887a23..cc6bf41c2f73e8c0860e805a3148ac2f0b96d399 100644
--- a/src/libnptm/logging.cpp
+++ b/src/libnptm/logging.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file logging.cpp
  *
diff --git a/src/libnptm/magma_calls.cpp b/src/libnptm/magma_calls.cpp
index 347b6cba26d605f0f8e95f47f960ef224de339a1..b44f89573fca3870e1d456fbe90790b114690e65 100644
--- a/src/libnptm/magma_calls.cpp
+++ b/src/libnptm/magma_calls.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file magma_calls.cpp
  *
diff --git a/src/libnptm/sph_subs.cpp b/src/libnptm/sph_subs.cpp
index ec130527737499311537c3eea4264b9927220c98..3d25f8c8a89ba02d29b992752b3694b1331d8e1e 100644
--- a/src/libnptm/sph_subs.cpp
+++ b/src/libnptm/sph_subs.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file sph_subs.cpp
  *
diff --git a/src/libnptm/tfrfme.cpp b/src/libnptm/tfrfme.cpp
index 081563e3ff10777d893dd6af051c26ae18c5d87a..52ef1b15f9af2fb82677a53cc3f1ad195f66a150 100644
--- a/src/libnptm/tfrfme.cpp
+++ b/src/libnptm/tfrfme.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file tfrfme.cpp
  *
diff --git a/src/libnptm/tra_subs.cpp b/src/libnptm/tra_subs.cpp
index 74b8f1b642e51558775b2eb81ec7a94d0eec3ed3..1252fb2fdb5473d65402fc855594aceeb63280f2 100644
--- a/src/libnptm/tra_subs.cpp
+++ b/src/libnptm/tra_subs.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file tra_subs.cpp
  *
diff --git a/src/libnptm/types.cpp b/src/libnptm/types.cpp
index a9fd71be5682403b831ca13926fb6eff88ebac69..0b8c6d2dc33f383ea1e509e439cd090eb69250bd 100644
--- a/src/libnptm/types.cpp
+++ b/src/libnptm/types.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file types.cpp
  *
diff --git a/src/sphere/np_sphere.cpp b/src/sphere/np_sphere.cpp
index afb3fdbd2a0d4d2256e5ef9c9b33f6bedca1d9fa..aa38fdc115fae157de2f9fe180ebeb0672fa03e0 100644
--- a/src/sphere/np_sphere.cpp
+++ b/src/sphere/np_sphere.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file np_sphere.cpp
  *
diff --git a/src/sphere/sphere.cpp b/src/sphere/sphere.cpp
index 2c0dd6fdf65b2afde730afc88f3e5a5cfb500342..1b2b53648fb3d82c8f546d3abbe7c706be718265 100644
--- a/src/sphere/sphere.cpp
+++ b/src/sphere/sphere.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file sphere.cpp
  *
diff --git a/src/testing/test_TEDF.cpp b/src/testing/test_TEDF.cpp
index b790afd907df1dbb229e0f0ac4b214fd42ea7d5b..84127329be980768bea7cf02b2a19610fc573015 100644
--- a/src/testing/test_TEDF.cpp
+++ b/src/testing/test_TEDF.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 //! \file test_TEDF.cpp
 
diff --git a/src/testing/test_TTMS.cpp b/src/testing/test_TTMS.cpp
index 77b8d7c22b1fdc59a73a7165ae2369c2e3c368ff..a5d443eaefccf61bec2a33027ef725c4d3054e5f 100644
--- a/src/testing/test_TTMS.cpp
+++ b/src/testing/test_TTMS.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 //! \file test_TTMS.cpp
 
diff --git a/src/trapping/cfrfme.cpp b/src/trapping/cfrfme.cpp
index eb26b6c0b634cf50c75acb097d74116708e0ed8d..546cab2fbacecfe399adecffd331fa1efba9463f 100644
--- a/src/trapping/cfrfme.cpp
+++ b/src/trapping/cfrfme.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file cfrfme.cpp
  *
diff --git a/src/trapping/clffft.cpp b/src/trapping/clffft.cpp
index 4107563a8d566fb3a2ecd8ee0c9ee0e7216d362e..ceea3bd8c3363fa6044861eb5d14d78d6d0a1bc0 100644
--- a/src/trapping/clffft.cpp
+++ b/src/trapping/clffft.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2004 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file clffft.cpp
  *