Support reference uri & fix gobs of C code

This isn't just an example right?