free funct_args on error
error handling: handle math errors more consistently & check if argnames valid