added buffered data collector for send metrics
changed var scope
added comments
fixed a bug with currentSize calculating
Merge pull request #2 from AndrewShalimov/addBufferedSend

added buffered data collector for send metrics