Bug fix for swagger generation script, reordered docs