added mode selector to examples and started multisession work, wip