added rewards to writeToDot