added some comments, removed visibility of rollFrequency