added std calc and blob count flag. Going to see about speed up