Complex sentence: A small and cramped outbuilding was used as the local library for about 50 years, and, despite the difficult accommodation, the library was extremely popular.
Split into simpler sentences: A small and cramped outbuilding was used as the local library for about 50 years. Despite the difficult accommodation the library was extremely popular.