"before the court commits an accused for an enquiry in terms of subsection the court shall inform such accused of its intention and explain to him the provisions of this section and of section b as well as the gravity of those provisions"