convert tabs to spaces so it is only one way of indent. also delete trailing whitespace