added some comments for the ModelManager class