better bounds checking
less typecasting
update flwm model
support for rulesets
dedicated rand generator for each model