Update README.md

Add build status badge
Move zoom level updaing logic to its own function and add tests