removed extra print after error in parsing duration value
changes in comments