added testmethod descriptor
new test filtering
added utilities with sum and mean
use of cube_sum in stats
functions moved from internals to utilities
functions moved from internals to utilities