Small changes.
Added environment struct
Sampling