Refactor knot_getline function
knsupdate: remove old code + code unification
SIG(0): refactor, cleanup, add documentation comments

refs #2353