Add flag value and some methods

The flag value is for taking out the duplicate comments from the CSV
file. Also, added equals method to test object equality.