finished OF, added MWM graph, fixed some bugs