revert AST2IR
code clean up and more clarifying comments in classes.R
outline of AST2IR with comments