[what] fix error: effect doesn't apply when saving files
[why] the order of UpdateFormatInfo and SetProperty could be changed. we need to call InitialEffects after SetProperty.
[how] 1. add InitialEffects
2. call InitialEffects after SetProperty
3. revise some tabs to four spaces, which make the code arrangement better.