Fiexed the printing of the coordinates + cleaned up some syntax