fixing number formatting for different culture versions
adding comments to code