Keep track of which graphs are selected when switching from one file to another in the simulation view plugin. Also some minor cleaning up.