Corrected issue with term not found in index.
Fixed math issue.
Fixed string formatting.