added inclusion of valied non time stamped lines, timestamped lines which have not timestamp