Export only when create member is not available
Removed unneccesary semicolons
Parameter deep made optional in importNode method