Huge refactor in previous code

More standard and easier to understand for beginners.
Should work fine.
Merge branch 'master' of https://github.com/superboum/insalan.fr
Merge branch 'master' of https://github.com/superboum/insalan.fr