Added position.
finished output to data model.
fixed merge conflits with relation editor.