added detector and initialcondition to misc.py