update comments in monad and graph