First functionnal verison of the program. Known issues to solve: cl_nfree bugs.