Added nuget package creation and fixed minor bugs with C# generator