Add transfer_functions.h (warning: pretty gross)