Indexed meshes working

Also made ByteDataStream methods synchronized.