Fix bug in radio/checkbox

check selected
Update test code blocks
Update distribution