Input frames may start at zero.
Changed file-structure, moving muon_functions to tools.muon_helpers