Added beforeEach navigation helpers, cleaned up docstrings