Input type switch cleaned up.   Comments/examples