Merge pull request #1 from ktsanov/master

Background radio group length used instead predefined  constant.
Merge pull request #5 from ktsanov/master

Some better if and for constructs.
reset