Correction on attributes inheritance.
Correction of attributs assignation.
Functions can now be typed with Null.
Code cleaning and more comments.