the parliamentary commander , the duke of bedford , had used his house in dorchester as his headquarters while he ordered the attack on sherborne last september , and we had seen soldiers marching off and cannon being hauled and messengers riding to and fro , and finally had heard the news that the royalists had been forced to surrender the castle .