Dang, this forum is making me a little nervous. There is a fairly well known router problem with the Galaxy S4. Samsung has acknowledged this. See, e.g., http://www.zdnet.com/samsung-acknowledges-galaxy-s4-wi-fi-connection-problem-7000015431/
Apparently I don't know how to use the Insert URL...