remove groupwise averages - code + man page