many fixes, and big improvement to ranked relevance due to a new algorithm for ranking
Merge pull request #48 from clovis/master

Bug fixes and new algorithm for ranked relevance