Refactored score.py a bit.
Fixed index in search results to start from 1 instead of 0.