added a better get similar sequences and various other improvements