Fix boundary conditions in kronos

This also adds an `end_id` parameter which is analogous to `start_id`. 
@marcua: Union.

@keir: I'm happy to let this sit. I'll let @marcua decide on the urgency of this patch.