Replace tabs with space and some other changes