Update stats
Add some helper functions
Minor update of polytrim_fast
Cleanup