Little refactoring with errors and converting objects to strings.
Reverted setting default node id is taken from current node object.
Merge pull request #4 from treww/master

Little refactoring with errors and converting objects <-> strings.