Merge pull request #1 from arokem/swederik-enh/TensorMode

RF: Rewrite of the tensor mode calculation with no loops.
Latex squiggle on A for Tensor Mode docs
DOCS + PEP8