Added elements summary counting. Added custom commands for structure elements. Pure section* is not used for this purposes anymore. Etc.
Added counters and sections formatting.
Subfig problem, removed unnecessary lines.