Updated Nuget  package and added IDisposable to better control the memory usage