Updates to MBoxLib.c error checking

Updated MBoxCheckMisc to be 1 function
and take advantage of settop instead of pop