added a common header file MoGraph.h for simplify includes for users, also some cleanup