minor changes
original tensor toolbox