Restructure API reference