A massive line ending change, some pedantic changes.

Looks like there were some line ending issues across platforms, so GitHub recommended a .gitattributes file. The commit containing that file shows every line changed, but from now on there shouldn't be issues.

There was a bias bug in your random selection logic. I fixed a few typos.