fix compile : use current path
use constants over class flags
start to output class code
refactor the code serialisation + handle class init from main