Judge reprimanded for comments during trial