improved the output of mouse coordinates to the console