change 4 spaces indent to 2

Change 4 spaces indent to 2 according to .editorconfig file config
Merge pull request #390 from neilhem/patch-3

change 4 spaces indent to 2