More code cleanup and polishing. Also fixed a bug in InputRadio where the value was not getting updated.