add better attribute handling

with that attributes are get their own section in CLI,
fixed the problem that when parsing one file it does say: "Files: 2"
and attributes can now find the Document-attr sections and are now documented