Fix boundary conditions in kronos

This also adds an `end_id` parameter which is analogous to `start_id`. 
I'll add limit in a separate patch. Not sure if order is too useful?