modified checkInterval. Added readCount and avgCount in output.