Explain the procedure to be followed for arresting and detaining any person

Indian Constitution says that when police arrests or " detains a person some procedures must be followed
(i) A person who is arrested and detained in custody will have to-be informed of the reasons for such arrest and detention.
(ii) The person who is attested or detained, shall be produced before the nearest magistrate within a period of 24 hours of arrest.
(iii) This person has the right to consult a lawyer or engage a lawyer for his defence.
(iv) In case of complaint, the magistrate should check the time of arrest by questioning the person arrested.
(v) If the magistrate finds that any person has been unlawfully detained, he shall report the matter to the sessions Judge, who shall take appropriate action in this case.