add a few test files, and fix shell avg and integrate routines