added motif-finding to the State based naive bayes model
new version