added C# interface to weights