Started tidying up the API and project docs.

Uses NuDoc to generate markdown documentation from the API docs.