first fonctionnable version

debug level 1 on functionnality and move template and layout to base
default