Added some comments, corrected misspellings, and refactored some names. TODO - Implement pause and cancel in IntervalProcessor.
Also fix the toggle buttons.