[FIX]: references

The reference node-converter now waits until the first document is
calls the convert function to attempt to convert the references. If
there are no valid references then it issues a message with the
location where the undefined reference was written.