Refactoring codes

cmadim.py
headline -> scheduler