Use the newly refactored snlsys library

- Minor refactoring of the whole source code;
- Replace the `per file' license header by a global LICENSE file
covering the whole project.