Reorganize and clean up API reference