Adding mlog.py and editing some other files.