flogged once , and awaiting another , frightened and in pain , he had been left in solitary confinement with no company save his thoughts-and this bible , given to him by the garrison 's surgeon for what comfort it might offer .