move representation to model

@ashimali this was the simplest way to get the model to represent itself centrally as a dictionary.