fixes #33

could be an option to define the indent amount
fixed test to use the same variable - DRY
Merge pull request #46 from stryju/patch-1

improved #33