Refactor of operational transforms. Now only one struct type