added ability to customize generated nav
minor bug fix