made datatensor warnings optional. Fixed classtensor:sub and sampler bugs.