1) Corrected logic errors of button's behavior.
2) Added opportunity of changing all parameters programatically.
3) Added some settings controls to example project, that show button's work.
4) Littele sweet corrections