Updated cleanup script to clean more stuff up. Updated CMakeLists.txt files to have newline at the end.
Switched to using QPointer for modal dialog per Krazy2's suggestion.