Fixed few bugs. Started writing emitter functions. Implemented caller return.