modified Node class and Nodethread to handle library function resourcewaitingtime