Can now cancel simulation midway through
Fixed minor bug with CBED mode and cancel interaction
Update MainWindow.xaml.cs

removed extraneous function
Tested merge with master.
Merge branch 'CancelButton'