Added smooth scrolling.

- Also some minor formatting changes.