changed some uniform buffer code and a demo