Wormlike chain statistics with twist and fixed ends