Trimmed empty lines and fixes some whitespace issues.