improve comments and cleanup code related to model animation