fix beam has not been assigned Sorry, i forgot to make two different changes, and now I has correct one of them.
Use "with" statement instead of "open"
Update README.md