added function to print detailed informations about an instance