fixed bug in getID,setPadding, setType, and a small bug in physicallayerEmu's getnewdata