added codegen for basic function decls