New version

Bugs were fixed
More speed
One bug still: exiting from programm