whitespace cleanup

spaces to tabs, and remove trailing whitespace