Document the loader API, fixes #4.