Documentation for TabViewerController

Added comments and general cleaning up.