Fixed date format in the end of header dataline and now the program handles if pentra sends a NAK