wip: code cleaning
wip: reslice2 cleaning
wip: cleanup in progress

todo: add last functions documentation