Added smooth scrolling to links.
Minor changes to internal links. Also minor changes to parts of the javascript to make it easier to modify.