added texture and resolved some other issues