Implemented the receive buffer using std::vector instead of char array
Corrected the readCount Bug