Some small refactoring of models and a doc to track API commands