add trailing empty line
fix trailing spaces