Removed extra newlines at EOF and removed trailing spaces.