Added docs
Moved node creation to a function to avoid creating the defaults if the defaults are not used, see #4