Rewrote SemGenTab class and made all tabs extension of that class.
Added 'addTab' function and mouse listener for tab close request.