better tests, readme, and grouping functions