Close #3 - Fix callback before file is written
Update documentation in README