added stop time functionality for time structure
fixed bug with time constraints