made additional NN corrections, added test to run generator 1000 times for better results