Issue #42: Introduce the inderteminate value of a checkbox
Issue #42: some cleanups + comments