Added Stats class to make this library easier to use.