Added isEmpty, __str__ method and methods necessary to iterator over the class