Feature indexering

Added indexering functionality to the parser and master programs.