Commit-11: My previous tests did not cover all permutations! Fixed scenario where bedtime is after endtime. Added some input constraints through gui.