Added message and types models. Now it loads the messages from the xml