Renamed mainInstance -> visualiseInstance.

Less ambiguous, more consistent with names of other components.