idname to ids, added more ASTNode classes