Removed unused code. Refactored code to use node generator system. Migrated random value generation to statteringrandom.