added functions and the function printer

function dispatching and execution is still not implemented