Fix class page collapse, add links from home to corresponding classes

Added to @trippel's PR #23. In the interest of time, i've moved it here to not have to wait for him to accept a PR then update the one here.