Added Main class.
Set internal frames to show only one instance in the MDI.