Merge pull request #31 from nicholas-leonard/cudatensor

added back arg checks
resize should go first