Some part of generator were redesigned. Function of writing results in file was added.