Cleaned up code; refactored & added methods to RhythmGenerator