comp_dict: Fixing some error and adding line argument

Now each dictionary item has a list containing the lines of occurrence
of the token (dictionary key).