added motif_chain_contraints experimenting with a general way to constrain the ends of a motif chain