big changes
modification of Leaf class
start cleaning
Debug in learning seems over