set limit to stdev a bit bigger and add function header to running_average function fix some comment errors