indexing: started moving rule indexing to kompile
moved indexing to kompile
indexing: added a comment