Added bookmarks formatting and correct indentation

Tested with real 1300-lines LaTeX doument . The parsing is almost
istantaneous.