updates for the manual for trimming, and new module functions