S&P 500 closes up, focus on earnings and US interest rates