Only add declarations for files listed in command line.
Only list each namespace once.
Separate functions and methods and export method info.