Fixed trigger slicing in main, added basic sanity checks for frame rate and travel threshold