Made devel operational after model changes (fixed bugs and made slight change in RWM algo)