Heca cmd line, code refactorings, memory overlapping check