Added initial stats library and example script