made logging function, not tested
Merge branch 'master' of https://github.com/uiucseclab/MagBastard