equals() and toString() methods implemented

It was overrided the equals method, instaed of using the comparation of
references it has a implementation that allows to check if two objects
are semantically equals.  toString method allows to give format to the
class.