fixed info on clear flag, and added function to parse run ranges