Function conversion

Added the class functions into the M_CORE namespace