Most men in a specific regiment fell under the authority of the brigade commander and the brigade provost marshal and provost guards who were chosen and assigned the duty to enforce the laws and regulations. Akin to our Military Police today. If a complaint were made against someone of the rank and file or against one of the officers, then the brigade commander would issue orders to the provost marshal to arrest that person, if the crime or complaint were serious enough. That person would then be placed in the guard shack (makeshift jail) under armed guard until his hearing or court martial came before the brigade commander and provost marshal, who would hear and oversee the trial and then make a decision as to guilt or innocence. Then a verdict and sentence would be issued by the brigade commander if found guilty. Which could vary between losing rank or privileges and given an extra detail as punishment... to being hung depending on the severity of the crime or complaint filed or levied. Typically spying or treason resulted in a hanging where as insubordination, disorderly conduct or some other low-level complaint resulted in a loss of rank and privileges or being placed on extra detail in the rank and file, or the loss of command regarding officers. Typically when an officer was accused of some type of dereliction of duty or crime he would be temporarily suspended of his command and placed under arrest, if the charges were serious enough and were taken seriously, until he was either cleared and reinstated or found guilty and be further reprimanded. Every brigade had an appointed provost marshal and guards which were in charge and left to administer the sentence when given, to include public hangings if that specific sentence was issued. If a crime or complaint was filed against the brigade commander himself, then the matter would be taken up at the division level or corps level beyond that. Any Prisoners of War taken by a regiment or brigade would also be placed under armed guard of the brigade provost marshal and provost guards.