modify lookup to find functions
add functionality to make individual tests work.
fix add_param call
functions that don't return values work
add call by ref functionality