compressed stats interface with unitstats class, removed deprecated methods
added junit tests