added two simulation modes: single run and SR optimization; minor cosmetic improvements