added support for enable disable of MSD callback function and counters for read/write errors