After turning in a mixed performance in the previous session, stocks moved mostly higher over the course of the trading day on Wednesday. With the gains, the major averages ended the session at their best closing levels in almost a month.