Prompt emission and X-ray flares: the case of GRB 060607 A