- changed code from (take (length xs) (repeat type)) to a clear version: (replicate (length xs) nodetype).
- changed variable name from "type" to "nodetype".