Updated the source tree for to use with tensor data

Tensor code has been merged.