Updated doc
Fixed bug if no end time