Fixed several small bugs such as check boxes and radio inputs not working as expected and enhance the examples.