Court passes prison improvement measures for ensuring safety of inmates, such as CCTV footage recording and regular medical check-ups for inmates