texture refrences mostly

and a few other funtion updates as i caught them..