Add static generator

Close #163
Cleanup this code is something that I have in mind, but it's not necessarly straight-forward. I'll probably remove the indentation system altogether. The ideal implementation would be to generate AST instead of writing strings.