Removed debugs. New code creates same result as own code with passing values by file. Only open problem void-file is created.