bug fix. notice that an integer can be comverted to ns3::Ptr implicitly
added traceTxCallback and getTotalTxBytes