until a month ago , he had been a captain in charge of a single company , but an accident had killed a senior officer and the resulting shuffle had seen several promotions , leaving him in charge of a newly-formed , shrunken battalion of two companies .