Improved example in README.
Fixed runtime error that occurs with large queries.