Remove most exceptions from getNode() (and variants)
Fix warnings and other misc. minor changes