Improvements in Dynamic Modeling of Underbalanced Drilling