improve summary comments on main functions; move public elements to top of file; simplify header matching
improve summary comments on main functions; move public elements to top of file; simplify header matching

jasongaylord/markdownsharp,jasongaylord/markdownsharp,hey-red/Markdown