Added compiler support for function definition and return support in code