Improvements to DSGE and DSGEVAR code