Fix proper day time calculation with multiple consecutive In's or OUT's.
Use a fuction to read lines, skip lines that are empty and shell style commented.
Document function type.