Added another reference to the notes.
Mashed together the GHC API code to get a list of imports and the haskell-names example; had to make the GHC import qualified.