improved documentation on to_dict function of User and Book