refactor model internal apis.
Merge pull request #33 from hirakiuc/refactor_model_api_methods

refactor model internal apis.