Complex sentence: Bramah had recently designed and patented an improved type of lock based on the tumbler principle, but was having difficulty manufacturing the complex lock at an economic price.
Split into simpler sentences: Bramah had recently designed and patented an improved type of lock based on the tumbler principle. He was having difficulty in manufacturing the complex lock at an economic price.