ready to refactor for unittests
Trying to make interval variable, does not really seem like the best solution
beautifyed the csharp code
further beautification
original code added, and Time taking implemented