More docs, and some stuff about defining new endpoints