Added explicit comparisons to null.
Tweaked comments.
Deleted unnecessary null checks before delete and nulling at destruction.
Improved and merged array size calculation macros.
Improved safety by changing to strncpy_s().
Refactored and simplified code by converting arrays to vectors.
Fixed regression in transfer rate detection algorithm and added comments (related to commit 7d7cabbaa1ba).
Removed unnecessary comparison to Boolean constant.