Improved crack tip enrichment functions and integration for crack modeling using the extended finite element method