Changed two checkboxes to radiobuttons.
Improved methods to reduce the quantity of code lines.
Added methods documentation.