added state support
added main menu with options (broken atm)