Move richard-related things to richardapi and add docs