Pa. contractor goes to court, gets arrested for fraud