Better constructor of classes; Add MIT lisensed

Better anonyme constructor of classes (and Fix bugs);
Name = id by default
Add MIT lisensed