added mat4 rotateX, rotateY, rotateZ

refactored writers to include reset and capacity
added UIntWriter