All basic functions is realized.

TODO:
-intensity counter;
-clear code;
-testing;