Rename the doc files

- use api.rst for code