Sec. 3413. Judicial proceedings; advisement of patient: counsel, retained physician's authority, treatment program of commitment, withdrawal, duration, confinement, postconfinement, and recommitment; examination of patient: appointment of physicians, order of commitment, conduct and report of examination, and copies to patient and counsel; return of patient for further proceedings