cleanups tabs -> spaces and removed trailing whitespace