change line endings to unix + tidy formatting a bit