Adding the MCG API directory
Refactored API structure
Modifying compile.m, config.m and MCG build fil
removing old setconfig file