Removed printfs from ToGraphMP functions
Removed unused variables