removed annoying debug output, use numpy functions for statistics