First porting commit:
- lot of code commented to allow compilation
- need to re-test all the mod
- next compute TODO list