added support for \r\n line endings
added notes to readme about running under linux. Needs to be confirmed & tidied up