Add notes to main script
C++ modif
Fix bug in counting levels