Data mining work

Incorporating data mining work into master branch