Fixed a few redunandcies, and implemented a fixed navigation bar after scrolling a certain length.