implemented nextTrell and fixed other Trellis things