fixing tabs and removing excess whitespace