Ok mem edits are now properly synchronized using the dds_sem library
Got rid of the global vars in main, #hateglobals