Closes #619: repair formatting of examples in API