MainWindow refactored.

Basic benchmark now has a separate class.