add collectNodes; add submodels in model.scala
add relation implements