implemented MotifTreeState which is going to be the more general MotifEntry class