Still working on texture bug. Also removed some depricated cuda functions.
Merge remote-tracking branch 'origin/master'