generalized edgemodel and nodemodel assignments in initialize
small comment fix