Added really basic function name collection pass

function names now collected into a global function table [to be later
extended to general modules]