Diddy tells judge about beatings and poor conditions in jail.