While loops, function calls working. It mostly works.

Next step is cleaning up the memory leaks in the code gen...
Merge pull request #4 from rgeminas/master

While loops, function calls working. It mostly works.