Fixed mistake with mtarch.h
Moved the functions to near memory in mtarch