add: ir.py; about to remove ir point code from main_statechart.py
rm: update_ir() from main_statechart, (replaced by ir.py)