Docear/HTW-Frontend#521, fix for addNode-Failure, refactoring, cleanup