First stab at proper docs

These are a bit outdated though! Need to be revised.