fixing tests
adding docs
addint \r for windows newlines