Reformat and improve sample code
Merge pull request #27 from pavlos256/dev-improve-csharp

Reformat and improve sample code