Fixes for mcode project type

1) Exception was happening for mcode type projects when loading
routines.
2) The routines were not being refreshed correctly. These routines are
stored inside of