Combined Main with AppDelegate.
Added table sample and menu.