List symbols that are referenced in public APIs, but not exported

This code needs help, but this is what I have so far.