read now successfully builds on windows + detect \r\n and \n newlines

why is the git diff so confused on this one