Refined generateIndex() and implemented generateNavigation()
Removed debug navigation sample and implemented the real deal