Peter cleanup

@jpihl @mortenvp  I found some source files here with CRLF line endings. VS was complaining about the inconsistency, so I changed all files to LF. We should check our editor settings.
Btw, I also removed some duplicated code from test_convert_endian.cpp. I think it is easier to read now.