Fix up api for actions, add docs