fix bug with time constraints, add in better formatted output