U.S. stocks ended the day in the green as the markets digested a host of economic and earnings data.