Moved model setup and goal inference into the Model class, setup pointer to Environment and header initialisation, compiles but segmentation fault with simvect_ in Model, need to pass pointer to map