Train tragedies: Who's to blame?

Three train accidents in a week, over a 100 dead. Why are the Indian Railways so unsafe?