generate two-level navigation menu automatically
added more binding subsections, other edits and cleanup