Move ast functions to separate module
Merge pull request #5 from Ceasar/kyle-move-ast-funcs

Move ast functions to separate module