Interp with functions

Added functions to be able to be used as values and fixed up cond and if