Removed dependency of global variables in mabonlm3d.cpp