made preset templates work
added template lengths to the list of metadata
got the mistake-driven clustering working