Fixed updating node fields on profile update and lot of small issues.

Also fixes th issue #19.