Added MineStat Java class and an example