Update TODO.md
Add mostly working implementation of custom functions