added significantly more code, motif/motif_library are mostly done working on motif_chain class
added correctly now