updated but broken doing this for the diff
Added loads of comments, filedialog and re-load for the Viewer