Added a bunch of reference and tutorial pages, and refactored base