Support reference uri & fix gobs of C code

Yeah, I wasn't quite sure why they previously dumped all the data to screen so I kinda weaseled out with a warning. But agreed, this is silly. Warning removed.