Stocks manage to post modest gains after a wobbly day

Stocks closed modestly higher on Wall Street after a day of veering between gains and losses