removed duplicate rules in indexing table
addressed Dwight's comment
Merge pull request #1065 from yilongli/fix-duplicate-indexed-rules

removed duplicate rules in indexing table
fixed Term#compareTo to conform to its general contract
Merge pull request #1074 from yilongli/fixing-issue-1073

fixed Term#compareTo to conform to its general contract
add unified interface for accessing file system