Made mw_fix.cpp more lean. Removed unneccesary functions.