Added pidfile config variable
Added pidfile config variable
Moving indexing code to one location.
Better error handling
Added indexer for indexing groups of lines based on when the value of a column changes.