update script to fix tabs, trailing whitespace and indentation