main.py now object-oriented

In prep for the GUI, I rewrote the main file to be OOP. However, if
interval and resultlength are different, there is an error