Added to_s methods to the classes.