Why Pray?

Are thoughts and prayers enough in a world touched by violence, hurt and hatred? Who or what are we praying to? Can an atheist pray?