Compiler now supports functions

Typing is ugly, but idk how to deal with that; I did the same thing for
the 164 project