added lots of new unittests and fixed quite a few bugs in regards to assembly and creation of motif chains