More docs.
Comments on MainWindow code.
Added TODO