Added checkedClass-option
Simplified style
Updated sample