More progress done on the stats function, relates to issue #62
Added tests for the stats object
Merge pull request #76 from joola/feature/issue#62

Added the stats object, resolves issue #62