corrected time stamp and header handling, removed range output