added functions to statements and fixed return in funcDecl