Changed all double* signature mapped to [MarshalAs(UnmanagedType.LPArray)] double[]
Added an example to tests