white space consistency

tab length is 3 spaces, except for the code in ReadDocument