fixed bug, added field length weighting to tf score