Flood processing adjusted, now works fairly (still sometimes a few gaps when flowing). Started making test for the flood processing. Flood generator errors should now be fixed. Added Random parameter with constructor to make testing easier.