changing the code to use a while loop to ignore many new line characters, adding more useful error message output to the AbstractIndexWriter class (the object toString in addition to the class)