Removed duplicate apriori code. Added option to compress JSON when creating an index (so far seen ~65% decrease in index file size).