added midtimes feature
BF: caught a few bugs not covered in tests
new tests