sentences:  In the 1830s a workhouse and a school were built inside the castle bailey.In 1844 the owner, Sir Edward Kerrison, demolished a later windmill that had been built on the motte, and replaced it with a domestic house.Kerrison had the dwelling built for his batman, who had saved his life at the battle of Waterloo in 1815.