renaming add_fn to addFunction

- leaving backward compat.
beginnings of IDE rewrite