Bunch of bug fixes, and update all the NuGet packages