Added createChild and createNode. Fixed bug in getIdFromNodeOrString.