bugfix
refactor session code to use std::vector < int >
switch intertimes to C.