Reminiscent of Willy Wonka, the fantastically eccentric owner of a magical chocolate factory in children's books by Roald Dahl.
Not in good working condition.
Synonym of crank (“of a ship: liable to capsize because of poorly stowed cargo or insufficient ballast”)
Grouchy, grumpy, irritable; easily upset.
Not in perfect mental working order; eccentric, peculiar.