Beginning of refactoring: structure the directories and generate a template of headers