The military courts shall be constituted like, and have cognizance of the same subjects, and possess like powers, except as to punishment, as similar courts provided for by the laws and regulations governing the armed forces of the United States, and proceedings of courts-martial shall follow the forms and modes of procedure prescribed for said similar courts, except as expressly modified by this