added program attributesToBind, bind/unbind texture, typo fixes, cleanup