Fixed replace logic, implemented xml updates and completed caching
Built package