Fix reference creating.

Thanks for Fedoseev Ivan for spotting.
Flake8 compilance.
Update README.