diff --git a/setup.py b/setup.py
old mode 100755
new mode 100644
index eb7a197..60a5c3f
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,26 @@
#!/usr/bin/python
+# -*- coding: utf-8 -*-
'''
- Setup script for Biomon
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
'''
+
import sys
import os
import subprocess
diff --git a/src/biomon/__init__.py b/src/biomon/__init__.py
index e69de29..2820040 100644
--- a/src/biomon/__init__.py
+++ b/src/biomon/__init__.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
diff --git a/src/biomon/cbv.py b/src/biomon/cbv.py
index 38bf77e..665f550 100644
--- a/src/biomon/cbv.py
+++ b/src/biomon/cbv.py
@@ -1,6 +1,23 @@
-"""
-Class Based Views
-"""
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
from django.views.generic import base, detail
diff --git a/src/biomon/forms.py b/src/biomon/forms.py
index 3d77509..037c2a9 100644
--- a/src/biomon/forms.py
+++ b/src/biomon/forms.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
import simplejson as json
from django import forms
diff --git a/src/biomon/livedata_provider/__init__.py b/src/biomon/livedata_provider/__init__.py
index e69de29..2820040 100644
--- a/src/biomon/livedata_provider/__init__.py
+++ b/src/biomon/livedata_provider/__init__.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
diff --git a/src/biomon/livedata_provider/graphite_custom.py b/src/biomon/livedata_provider/graphite_custom.py
index 5728e4f..3808996 100644
--- a/src/biomon/livedata_provider/graphite_custom.py
+++ b/src/biomon/livedata_provider/graphite_custom.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
RENDER_PARAMS = {"bgcolor": "000000",
"majorGridLineColor": "FFFFFF",
"minorGridLineColor": "FFFFFF",
diff --git a/src/biomon/livedata_provider/urls.py b/src/biomon/livedata_provider/urls.py
index 5ca5491..d3ea970 100644
--- a/src/biomon/livedata_provider/urls.py
+++ b/src/biomon/livedata_provider/urls.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
from django.conf.urls import patterns, url
from . import views
diff --git a/src/biomon/livedata_provider/views.py b/src/biomon/livedata_provider/views.py
index a3eee93..7f50218 100644
--- a/src/biomon/livedata_provider/views.py
+++ b/src/biomon/livedata_provider/views.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
import urllib
import urllib2
import urlparse
diff --git a/src/biomon/medibot/__init__.py b/src/biomon/medibot/__init__.py
index e69de29..2820040 100644
--- a/src/biomon/medibot/__init__.py
+++ b/src/biomon/medibot/__init__.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
diff --git a/src/biomon/medibot/definitions.py b/src/biomon/medibot/definitions.py
index 3be2bd0..7bf1423 100644
--- a/src/biomon/medibot/definitions.py
+++ b/src/biomon/medibot/definitions.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
import re
import operator
diff --git a/src/biomon/medibot/models.py b/src/biomon/medibot/models.py
index 534635a..eb7da33 100644
--- a/src/biomon/medibot/models.py
+++ b/src/biomon/medibot/models.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
from django.db import models
from django.utils.translation import ugettext_lazy as _
diff --git a/src/biomon/medibot/watcher.py b/src/biomon/medibot/watcher.py
index b50c960..d5fe4e2 100644
--- a/src/biomon/medibot/watcher.py
+++ b/src/biomon/medibot/watcher.py
@@ -1,4 +1,25 @@
# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
import json
import math
from time import sleep
diff --git a/src/biomon/models.py b/src/biomon/models.py
index e2c892c..0fcacf7 100644
--- a/src/biomon/models.py
+++ b/src/biomon/models.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
import simplejson as json
from datetime import datetime
diff --git a/src/biomon/urls.py b/src/biomon/urls.py
index aaab643..8bef0bc 100644
--- a/src/biomon/urls.py
+++ b/src/biomon/urls.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
from django.conf.urls import patterns, url, include
from django.conf import settings
from django.contrib import admin
diff --git a/src/biomon/views.py b/src/biomon/views.py
index 33f484f..49b281a 100644
--- a/src/biomon/views.py
+++ b/src/biomon/views.py
@@ -1,5 +1,25 @@
# -*- coding: utf-8 -*-
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
from django.views.generic import (TemplateView, FormView, View, ListView,
CreateView, UpdateView, DeleteView)
from django.contrib.auth import authenticate, login, logout
diff --git a/src/biomon/whisper_backend.py b/src/biomon/whisper_backend.py
index 4899c8c..fb78153 100644
--- a/src/biomon/whisper_backend.py
+++ b/src/biomon/whisper_backend.py
@@ -1,3 +1,25 @@
+# -*- coding: utf-8 -*-
+
+'''
+ biomon - Signs monitoring and patient management application
+
+ Copyright (C) 2015 Entr'ouvert
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+'''
+
+
import os
import time
from datetime import datetime