Implement OrientOperations for Document

Not finished.