major bug fixes in motif.py and motif_chain.py also got the assembly aglorithm to build complete chains