updates model

Added preliminary updates model code. Still need to eventually integrate with front end code.