replace tabs with 4 spaces

also fix one line with trailing spaces