added some tensor fixes, still working on last bits of convolution