Reorganized langs

and reorganized a bit the code