Added stohastic pathes generator. Debug the code.