update .gitignore to ignore nuget packages
Fixed remaining code analysis issues, implementing IDisposable on objects that contain IDisposable members