added option menus and config file support