Fixed bugs with windows and determinism.
Implemented class to compare groups.