fix typo in README
improve tests and add setFile method