Comment debug
Fix to only set theta when needed in createModel
tidy up
Fix for new createmodel