some small updates to C++ code for modeeg, recompiled on maci