Wall St gains ahead of Fed officials' remarks; Dow nears 40000 mark - Reuters