Fixed printing of empty chapters or sections.
Implemented first version of leveling.
Added some beta version for leveling.

It fails with groups. There should be a better structure there.