Code cleanup on nodes and edges; also added better error messages for when they're passed the wrong sort of thing when searching for parameters.