Should fix errors about missing variables, mainly in graph_all_periods.
Tweaked the menu_cells abit.